importPackage(Packages.org.xptracker.domain);
importPackage(Packages.org.hibernate.criterion);

var c = session.createCriteria(StoryState);
c.add(restrict.lt("startDate", args[1]));
c.add(restrict.or(restrict.isNull("stopDate"), restrict.gt("stopDate", args[0])));

results.addAll(c.list());
